| !GView.!Run
|
|  2006 Martin Wuerthner
|
RMEnsure UtilityModule 3.10 Error This application is only suitable for use with RISC OS 3.10 or later versions
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 RMLoad System:Modules.CallASWI
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 Error This application requires CallASWI 0.02 or later
RMEnsure FPEmulator 4.03 RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator 4.03 Error This application requires FPEmulator 4.03 or later
|
WimpSlot 256k 256k
Set GView$Dir <Obey$Dir>
IconSprites <Obey$Dir>.!Sprites
|
If "<ChangeFSI$Dir>" = "" Then Error ChangeFSI has not been seen by Filer
If "<GhostScript$Dir>" = "" Then Error GhostScript has not been seen by Filer
|
| The GhostScript executable started by GView
Set GView$X <GhostScript$Dir>.gs
| The include directory passed to GhostScript
Set GView$I <GhostScript$Dir>
| The scrap directory GView creates, uses and deletes
Set GView$S <Wimp$ScrapDir>.GView
|
RMEnsure DrawFile 1.00 RMLoad System:Modules.DrawFile
RMEnsure DrawFile 1.00 *Error This application requires the DrawFile module
|
| Place a vertical bar character in front of the next line here and in the !Boot
| file if you do not want GView to be launched when you double-click on a PS file.
Set Alias$@RunType_FF5 /<GView$Dir> %%*0

| Remove the vertical bar character in front of the next line here and in the !Boot
| file if you want GView to be launched when you double-click on a PDF file.
|Set Alias$@RunType_ADF /<GView$Dir> %%*0

run <Obey$Dir>.!RunImage %*0